import { lazy } from "react";
import { AuthComponent } from '../../components/suspense/index'

var WarehousingManagement=lazy(()=>import('./assembly/WarehousingManagement'))
var DeliveryManagement=lazy(()=>import('./assembly/DeliveryManagement'))
var WarehouseStructure=lazy(()=>import('./assembly/WarehouseStructure'))
var WarehouseManagement=lazy(()=>import('./assembly/WarehouseManagement'))
var WarehouseReport=lazy(()=>import('./assembly/WarehouseReport'))

export default [ //Goods模块的二级路由
    {
        path:'/index/warehousingmanagement',
        element:<AuthComponent permission={5}> <WarehousingManagement/></AuthComponent>
    },
    {
        path:'/index/deliverymanagement',
        element:<AuthComponent permission={5}><DeliveryManagement/></AuthComponent>
    },
    {
        path:'/index/warehousestructure',
        element:<AuthComponent permission={5}><WarehouseStructure/></AuthComponent>
    },
    {
        path:'/index/warehousemanagement',
        element:<AuthComponent permission={5}><WarehouseManagement/></AuthComponent>
    },
    {
        path:'/index/warehousereport',
        element:<AuthComponent permission={5}><WarehouseReport/></AuthComponent>
    },
]